package com.backend.apartment.mapper;

import java.util.List;
import com.backend.apartment.domain.Apartment;
import com.backend.apartment.domain.ApartmentType;

public interface ApartmentMapper
{
    public Apartment selectApartmentByApartmentId(Long apartmentId);
    public List<Apartment> selectApartmentList(Apartment apartment);

    public int insertApartment(Apartment apartment);

    public int updateApartment(Apartment apartment);

    public int deleteApartmentByApartmentId(Long apartmentId);

    public int deleteApartmentByApartmentIds(Long[] apartmentIds);

    public int deleteApartmentTypeByApartmentIds(Long[] apartmentIds);

    public int batchApartmentType(List<ApartmentType> apartmentTypeList);

    public int deleteApartmentTypeByApartmentId(Long apartmentId);

    public void updateApartmentType(ApartmentType apartmentType);
}
